<div class="container">
    <div class="col-md-12">	
        <div class="pull-left ">
            <img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/login.jpg" alt="登录背景" width="675" height="428" />
        </div>
        <div class="pull-right login_body">
            <div class="content">
                <div class="top">
                    <h2>用户登录</h2>
                </div>
                <div id="passportLogin" class="mid">
                    <div class="form">
                        <?php
                        $form = $this->beginWidget('CActiveForm', array(
                            'id' => 'login-form',
                                //'enableAjaxValidation'=>true,
    //                                            	'enableClientValidation'=>true,
    //                                                'clientOptions'=>array(
    //                                                        'validateOnSubmit'=>true,
    //                                                ),
                        ));
                        ?>
                        <?php echo $form->errorSummary($model); ?>
                        <div class="row icon user-group">
                            <i class="login-spt"></i>
                            <?php echo $form->textField($model, 'username', array('placeholder' => "请输入注册邮箱")); ?>                                  
                        </div>
                        <div class="row icon password-group">
                            <i class="login-spt"></i>
                            <?php echo $form->passwordField($model, 'password', array('placeholder' => "请输入密码"));?>
                        </div>
                        <div class="remember-me-row">
                            <div class="remember-me pull-left">
                                <?php echo CHtml::activeCheckBox($model,'rememberMe'); ?>
                                <?php echo CHtml::activeLabel($model,'rememberMe'); ?>
                            </div>
                            <Div class="pull-right"><a href="<?php echo $this->createUrl('/user/user/findpassword'); ?>">忘记密码</a></Div>
                            <Div class="clear"></Div>
                        </div>
                        <div class="buttons row">
                            <?php echo CHtml::submitButton('', array('class' => "login-spt btn")); ?>
                        </div>
                        <?php $this->endWidget(); ?>

                    </div><!-- form -->
                </div>
                <div class="reg">还没开通账号？<a href="<?php echo $this->createUrl('/user/user/register'); ?>">立即注册</a></div>
            </div>
            <div class="shortcut clear content ">
                <div>你也可以用以下方式登录：</div>
                <div>
<!--                    <a href="oauth.php?type=taobao">淘宝账号登录</a>-->
                    <a href="<?php echo $this->createUrl('/user/oauth/qqreg'); ?>" class="loginbtn"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/loginbtn_qq.png" /></a>
                    <a href="<?php echo $this->createUrl('/user/oauth/sinareg'); ?>" class="loginbtn"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/loginbtn_sina.png" /></a>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>